// Raf Lempens & Bjorn Schobben
#include "HitStep.h"

HitStep::HitStep(): hittableInterface(0), hittableObject(0)
{
}

HitStep::HitStep(const HitStep& rhs): hittableInterface(rhs.hittableInterface), hittableObject(rhs.hittableObject)
{
}

HitStep::~HitStep()
{
}

void HitStep::Execute()
{
	if (hittableInterface && hittableObject)
	{
		hittableInterface->Hit();
	}
}

void HitStep::SetObject(GameObject* object, Hittable* hittable)
{
	hittableInterface = hittable;
	hittableObject = object;
}


HitStep* HitStep::Clone() const
{
	return new HitStep(*this);
}
